using System;
using System.Collections.Generic;
using System.Text;

namespace Pervote.Core
{
    public class PollItem
    {
        public PollItem()
        {
            comments = new List<PollItemComment>();
        }

        long id;
        public long Id
        {
            get { return id; }
            set { id = value; }
        }

        long pollId;
        public long PollId
        {
            get { return pollId; }
            set { pollId = value; }
        }

        long rank;
        public long Rank
        {
            get { return rank; }
            set { rank = value; }
        }

        string name;
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        string addedBy;
        public string AddedBy
        {
            get { return addedBy; }
            set { addedBy = value; }
        }

        DateTime addedOn;
        public DateTime AddedOn
        {
            get { return addedOn; }
            set { addedOn = value; }
        }

        long totalVotes;
        public long TotalVotes
        {
            get { return totalVotes; }
            set { totalVotes = value; }
        }

        List<PollItemComment> comments;
        public List<PollItemComment> Comments
        {
            get { return comments; }
            set { comments = value; }
        }

        PollItemComment comment;
        public PollItemComment Comment
        {
            get { return comment; }
            set { comment = value; }
        }

        bool userVoted;
        public bool UserVoted
        {
            get { return userVoted; }
            set { userVoted = value; }
        }

        int numComments;
        public int NumComments
        {
            get { return numComments; }
            set { numComments = value;  }
        }
    }
}
